package com.pktechan.api.entity;

import java.util.Date;

/**
 * @program
 * @Description 消息发送记录
 * @Author qx.zhang
 * @create 2021-03-05 11:03
 */
public class WxMsgLog {
    /**
     * 消息ID
     */
    private Integer id;
    /**
     * 微信服务器消息ID
     */
    private String msgId;
    /**
     * 微信公众号ID
     */
    private String mpId;
    /**
     * 接收微信消息的OPENID
     */
    private String openId;
    /**
     * 模板消息ID
     */
    private String tempId;
    /**
     * 消息发送状态 0-待确认 1-成功 -1发送失败
     */
    private Integer status;
    /**
     * 消息发送结果代码
     */
    private Integer errorCode;
    /**
     * 消息发送结果详情
     */
    private String errorMsg;
    /**
     * 消息创建时间
     */
    private Date createTime;
    /**
     * 消息成功或失败时间
     */
    private Date respTime;

    public WxMsgLog(String msgId, String mpId, String openId, String tempId, Integer status) {
        this.msgId = msgId;
        this.mpId = mpId;
        this.openId = openId;
        this.tempId = tempId;
        this.status = status;
    }

    public WxMsgLog() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getMpId() {
        return mpId;
    }

    public void setMpId(String mpId) {
        this.mpId = mpId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getTempId() {
        return tempId;
    }

    public void setTempId(String tempId) {
        this.tempId = tempId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getRespTime() {
        return respTime;
    }

    public void setRespTime(Date respTime) {
        this.respTime = respTime;
    }
}
